public class Aircraft extends Machine
{
    Aircraft()
    {
        super(100);
    }

    @Override
    public void voyage() {
        setEnergy(getEnergy()-15);
        getEnergy();
        System.out.println("航行");
    }
    @Override
    public void run() {
        setEnergy(getEnergy()-10);
        getEnergy();
        System.out.println("陆地行驶");
    }

    @Override
    public void fly() {
        setEnergy(getEnergy()-25);
        getEnergy();
        System.out.println("飞行");
    }
}


